added samples
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2008 / CSStackOverflow / ReadMe.txt
blob2025357fdc24e9e650bb4f0e64a2abc9ae9ab0e4
1 =============================================================================
2         CONSOLE APPLICATION : CSStackOverflow Project Overview
3 =============================================================================
5 /////////////////////////////////////////////////////////////////////////////
6 Summary:
8 CSStackOverflow is designed to show how stack overflow happens in C# 
9 applications. When a thread is created, 1MB of virtual memory is reserved for 
10 use by the thread as a stack. Unlike the heap, it does not expand as needed. 
11 When too much memory is used on the call stack the stack is said to overflow, 
12 typically resulting in a program crash. This class of software bug in .NET 
13 applications is usually caused by deeply recursive function calls.
16 /////////////////////////////////////////////////////////////////////////////
22 /////////////////////////////////////////////////////////////////////////////
28 /////////////////////////////////////////////////////////////////////////////
29 References:
33 /////////////////////////////////////////////////////////////////////////////